package uk.org.scuts.bantstadium2.attacks;

import uk.org.scuts.bantstadium2.Character;

public class FlipOff extends Attack {
	// Constructors
	public FlipOff() {
		super();
		_name = "Flip Off";
		_accuracy = 100;
		_power = 0.0;
	}
	
	public String Execute(Character user, Character target) {
		String log = (user.Name() + " raises a finger to " + target.Name());
		switch (Hits(user, target)) {
		case MISS: 
		case GLANCING:
			log += (", but it fails. ");
		    break;
		case NORMAL: 
			log += (" and enrages " + target.ObjPronoun() + ". ");
        	log += target.Enrage(2);
        	break;
		case CRITICAL: 
			log += (" and REALLY enrages " + target.ObjPronoun() + ". ");
			log += target.Enrage(5);
			break;
		}
		return log;
	}
}
